class Solution:
    def singleNumber(self, nums) -> int:
        return (3*(sum(set(nums))) - sum(nums))//2

if __name__ == '__main__':
    so = Solution()
    nums = [2,2,3,2]
    re = so.singleNumber(nums)
    print(re)
